package com.google.code.p.restrpc.client.proxy;

import com.google.code.p.restrpc.RpcClientException;

/**
 * Throws this if any system error response received from server
 * 
 * @author dz
 */
public class RpcInvokeException extends RpcClientException {
    
    private String code;
    
    private String detail;
    
    public RpcInvokeException() {
        super();
    }
    
    public RpcInvokeException(String message, Throwable cause) {
        super(message, cause);
    }
    
    public RpcInvokeException(String message) {
        super(message);
    }
    
    public RpcInvokeException(Throwable cause) {
        super(cause);
    }
    
    public RpcInvokeException(String message, String code, String detail) {
        super(message);
        this.code = code;
        this.detail = detail;
    }
    
    public RpcInvokeException(String message,
                              Throwable cause,
                              String code,
                              String detail) {
        super(message, cause);
        this.code = code;
        this.detail = detail;
    }
    
}
